//
//  BaseViewController.h
//  BaseProject
//
//  Created by 陈家将 on 16/9/21.
//  Copyright © 2016年 szteyou. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^LoginSuccessCallBack)();
typedef void(^LoginCancelCallBack)();

typedef void(^ShowMenusCompletion)(BOOL showStatus,BOOL finished);

/**
 展示菜单按钮回调
 @param isShow 展示 or 关闭展示
 @param completion 动画完成后的回调
 */
typedef void(^ShowMenusCallBack)(BOOL isShow,ShowMenusCompletion _Nullable completion);

@interface BaseViewController : UIViewController

/** 点击导航左键按钮回调 */
@property (copy, nonatomic) ShowMenusCallBack _Nullable showMenusBlock;
/** 导航栏左键按钮 */
@property (weak, nonatomic) UIButton * _Nullable showMenusBtn;

/**
 检查是否登录

 @param success 登录成功的回调
 @param cancel 登录取消的回调
 @return 返回是否登录
 */
- (BOOL)checkIsLoginSuccess:(nullable LoginSuccessCallBack)success Cancel:(nullable LoginCancelCallBack)cancel;

@end
